<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文言智能翻译系统</title>
    <link rel="stylesheet" href="./style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
</head>

<body>
    <div class="container">
        <nav class="sidebar">
            <div class="nav-item" data-route="translate">
                <i class="fas fa-language"></i>
                <span>智能翻译</span>
            </div>
            <div class="nav-item" data-route="exercise">
                <i class="fas fa-pen-alt"></i>
                <span>错题练习</span>
            </div>
        </nav>

        <main class="content">
            <div id="translate-section">
                <div class="translation-box">
                    <textarea id="classic-text" placeholder="输入文言文..."></textarea>
                    <button id="translate-btn">智能解析</button>
                    <div id="translation-result"></div>
                    <div class="annotation-sidebar">
                        <h3>典故出处</h3>
                        <div id="historical-context"></div>
                    </div>
                </div>
            </div>
            <div id="exercise-section" style="display:none;">
                <div class="exercise-header">
                    <div class="grade-tabs">
                        <button class="tab-btn active" data-grade="小学">小学</button>
                        <button class="tab-btn" data-grade="初中">初中</button>
                        <button class="tab-btn" data-grade="高中">高中</button>
                        <button class="tab-btn" data-grade="课外">课外</button>
                    </div>
                </div>
                <div class="exercise-container">
                    <div class="article-column">
                        <div class="article-list"></div>
                    </div>
                    <div class="content-column">
                        <div class="exercise-area">
                            <div class="content-display"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="translation-box">
                <textarea id="classic-text" placeholder="输入文言文..."></textarea>
                <button id="translate-btn">智能解析</button>
                <div id="translation-result"></div>
                <div class="annotation-sidebar">
                    <h3>典故出处</h3>
                    <div id="historical-context"></div>
                </div>
            </div>
        </main>
    </div>

    <script src="./script.js" type="module"></script>
</body>

</html>